// isMenu 是否在菜单显示
import layout from '../layout/index.vue'
const routes = [{
		path: "/login",
		name: "login",
		component: () => import("../views/login/index.vue"),
		isMenu: false,
		meta: {
			title: '登录',
		}

	},
	{
		path: "/register",
		name: "register",
		component: () => import("../views/login/register.vue"),
		isMenu: false,
		meta: {
			title: '注册',
		}

	},
	{
		path: "/forgotpassword",
		name: "forgotpassword",
		component: () => import("../views/login/forgotpassword.vue"),
		isMenu: false,
		meta: {
			title: '忘记密码',
		}

	},
	{
		path: "/",
		name: "dashboard",
		component: layout,
		redirect: '/dashboard',
		isMenu: true,
		isHide: true,
		meta: {
			title: '首页',
		},
		children: [{
			path: '/dashboard',
			component: () => import('../views/dashboard/index.vue'),
			name: "dashboard",
			isMenu: true,
			meta: {
				title: '首页',
				icon: 'info'
			}
		}]
	},
	{
		path: "/price",
		name: "price",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '行情',
		},
		children: [{
			path: '/price/price',
			component: () => import('../views/price/index.vue'),
			name: "price",
			meta: {
				title: '商品行情',
				icon: 'hangqing'
			}
		}]
	},
	{
		path: "/reportForm",
		name: "reportForm",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '报表',
		},
		children: [{
			path: '/reportForm/reportForm',
			component: () => import('../views/reportForm/index.vue'),
			name: "reportForm",
			meta: {
				title: '报表',
				icon: 'order'
			}
		}]
	},
	{
		path: "/payApply",
		name: "payApply",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '支付申请',
		},
		children: [{
			path: '/payApply/payApply',
			component: () => import('../views/payApply/index.vue'),
			name: "payApply",
			meta: {
				title: '支付申请',
				icon: 'wallet'
			}
		}]
	},
	{
		path: "/notice",
		name: "notice",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '公告',
		},
		children: [{
			path: '/notice/notice',
			component: () => import('../views/notice/index.vue'),
			name: "notice",
			meta: {
				title: '公告',
				icon: 'megaphone'
			}
		}]
	},
	{
		path: "/rule",
		name: "rule",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '规则',
		},
		children: [{
			path: '/rule/rule',
			component: () => import('../views/rule/index.vue'),
			name: "rule",
			meta: {
				title: '规则',
				icon: 'balance'
			}
		}]
	},
	{
		path: "/customerService",
		name: "customerService",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '联系客服',
		},
		children: [{
			path: '/customerService/customerService',
			component: () => import('../views/customerService/index.vue'),
			name: "customerService",
			meta: {
				title: '联系客服',
				icon: 'headphone'
			}
		}]
	},
	{
		path: "/mine",
		name: "mine",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '个人资讯',
		},
		children: [{
			path: '/mine/mine',
			component: () => import('../views/mine/index.vue'),
			name: "mine",
			meta: {
				title: '个人资讯',
				icon: 'account'
			}
		}]
	},
	{
		path: "/setting",
		name: "setting",
		component: layout,
		isHide: true,
		isMenu: true,
		meta: {
			title: '个人资讯',
		},
		children: [{
			path: '/setting/setting',
			component: () => import('../views/setting/index.vue'),
			name: "setting",
			meta: {
				title: '个人资讯',
				icon: 'setting'
			}
		}]
	}

]

export default routes